package com.nowar.common.init;

import java.util.ServiceLoader;

/**
 * @Author: 谢无殇。
 * @Date : 2024-07-02 21:42
 */
public class Client {
    public static void main(String[] args) {
        ServiceLoader<SpiService> serviceLoader = ServiceLoader.load(SpiService.class);
        for (SpiService service : serviceLoader) {
            System.out.println(service.userName());
        }
    }
}
